package cn.com.nes.mybatis.agent.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 工单信息表
 * @TableName work_order_info
 */
@TableName(value ="work_order_info")
@Data
public class WorkOrderInfo implements Serializable {
    /**
     * 工单ID;工单ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 公司ID;公司ID
     */
    @TableField(value = "company_id")
    private String companyId;

    /**
     * 销售订单ID;销售订单ID
     */
    @TableField(value = "sale_order_id")
    private Long saleOrderId;

    /**
     * 客户ID;客户ID
     */
    @TableField(value = "customer_id")
    private String customerId;

    /**
     * 联系人;联系人
     */
    @TableField(value = "contact")
    private String contact;

    /**
     * 联系电话;联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 房屋ID
     */
    @TableField(value = "house_id")
    private Long houseId;

    /**
     * 行政区划代码;行政区划代码
     */
    @TableField(value = "area_code")
    private String areaCode;

    /**
     * 工单地址;工单地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 经度;经度
     */
    @TableField(value = "longitude")
    private BigDecimal longitude;

    /**
     * 纬度;纬度
     */
    @TableField(value = "latitude")
    private BigDecimal latitude;

    /**
     * 工单类型;工单类型
     */
    @TableField(value = "order_type")
    private Integer orderType;

    /**
     * 订单状态;订单状态
     */
    @TableField(value = "order_status")
    private Integer orderStatus;

    /**
     * 订单备注;订单备注
     */
    @TableField(value = "order_note")
    private String orderNote;

    /**
     * 业务人员ID;业务人员ID
     */
    @TableField(value = "maintain_id")
    private Long maintainId;

    /**
     * 业务状态;业务状态
     */
    @TableField(value = "maintain_status")
    private Integer maintainStatus;

    /**
     * 紧急程度ID;紧急程度ID
     */
    @TableField(value = "emergency_degree_id")
    private Integer emergencyDegreeId;

    /**
     * 问题分类ID;问题分类ID
     */
    @TableField(value = "question_type_id")
    private Integer questionTypeId;

    /**
     * 任务类型ID;任务类型ID
     */
    @TableField(value = "task_type_id")
    private Integer taskTypeId;

    /**
     * 设备ID;设备ID，维修工单需要填写
     */
    @TableField(value = "equipment_id")
    private String equipmentId;

    /**
     * 处理方式ID;处理方式ID
     */
    @TableField(value = "handle_type_id")
    private Integer handleTypeId;

    /**
     * 处理描述;处理描述
     */
    @TableField(value = "handle_desc")
    private String handleDesc;

    /**
     * 质保状态
     */
    @TableField(value = "warranty_status")
    private String warrantyStatus;

    /**
     * 维修验证码;维修验证码
     */
    @TableField(value = "maintenance_verification_code")
    private String maintenanceVerificationCode;

    /**
     * 创建人ID;创建人ID
     */
    @TableField(value = "gmt_create_id")
    private Long gmtCreateId;

    /**
     * 创建时间;创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新人ID;更新人ID
     */
    @TableField(value = "gmt_modified_id")
    private Long gmtModifiedId;

    /**
     * 更新时间;更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    /**
     * 逻辑删除;逻辑删除：0-正常，1-删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}